from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import MedicineSystemViewSet, MedicineTypeViewSet, MedicineCompanyViewSet, FindMedicineViewSet

router = DefaultRouter()
# 药品系统
router.register(r'medicine_systems', MedicineSystemViewSet)
# 药品类型
router.register(r'medicine_types', MedicineTypeViewSet)
# 药品公司
router.register(r'medicine_companies', MedicineCompanyViewSet)
# 药品详情
router.register(r'find_medicines', FindMedicineViewSet)
urlpatterns = [
    path('', include(router.urls)),
]